using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace Cpsc481Phone.Gui.Menus
{
    public partial class incoming_calls : UserControl
    {
        public incoming_calls()
        {
            InitializeComponent();
            listBox1.SelectedIndex = 0;
        }
        public void scroll_down()
        {
            listBox1.SelectedIndex = listBox1.SelectedIndex + 1;
        }
        public void scroll_up()
        {
            listBox1.SelectedIndex = listBox1.SelectedIndex - 1;
        }
        public int getIndex()
        {
            return listBox1.SelectedIndex;
        }
    }
}
